<?xml version="1.0" encoding="utf-8"?>
<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

@PATH=Simulation/FactionTraits[Affinity].xml

  <!-- ########################################## -->
  <!-- ######        MAJOR FACTIONS        ###### -->
  <!-- ########################################## -->

  <!-- Broken Lords -->
  <FactionAffinity                  Name="AffinityBrokenLords"                  SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityBrokenLords"/>
    <DefaultAffinityMapping         Name="AffinityMappingBrokenLords"/>
    <Personality                    Name="PersonalityAffinityBrokenLords"/>
    <SubTrait                       Name="FactionTraitBrokenLordsMainQuest"                                           Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitBrokenLords2"/>                 <!-- Affinity: Appetite for Dust -->
    <SubTrait                       Name="FactionTraitBrokenLordsUnit1"/>
    <SubTrait                       Name="FactionTraitBrokenLordsUnit2"/>
    <SubTrait                       Name="FactionTraitBrokenLordsUnit3"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileBrokenLordsHero1,UnitDesignBrokenLordsSettler#1,UnitDesignBrokenLordsInfantry#1,UnitDesignBrokenLordsInfantry#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Mad Fairies -->
  <FactionAffinity                  Name="AffinityMadFairies"                   SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityMadFairies"/>
    <DefaultAffinityMapping         Name="AffinityMappingMadFairies"/>
    <Personality                    Name="PersonalityAffinityMadFairies"/>
    <SubTrait                       Name="FactionTraitMadFairiesMainQuest"                                            Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitMadFairiesTheSharing"/>     <!-- Affinity: Sharing -->
    <SubTrait                       Name="FactionTraitMadFairiesUnit1"/>
    <SubTrait                       Name="FactionTraitMadFairiesUnit2"/>
    <SubTrait                       Name="FactionTraitMadFairiesUnit3"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileMadFairiesHero1,UnitDesignMadFairiesSettler#1,UnitDesignMadFairiesArcher#1,UnitDesignMadFairiesArcher#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Necrophages -->
  <FactionAffinity                  Name="AffinityNecrophages"                  SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityNecrophages"/>
    <DefaultAffinityMapping         Name="AffinityMappingNecrophages"/>
    <Personality                    Name="PersonalityAffinityNecrophages"/>
    <SubTrait                       Name="FactionTraitNecrophagesMainQuest"                                           Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitNecrophagesRecycling"/>     <!-- Affinity: Recycling -->
    <SubTrait                       Name="FactionTraitNecrophagesUnit1"/>
    <SubTrait                       Name="FactionTraitNecrophagesUnit2"/>
    <SubTrait                       Name="FactionTraitNecrophagesUnit3"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileNecrophagesHero1,UnitDesignNecrophagesSettler#1,UnitDesignNecrophagesNecrohunter#1,UnitDesignNecrophagesNecrohunter#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Rage Wizards -->
  <FactionAffinity                  Name="AffinityRageWizards"                  SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityRageWizards"/>
    <DefaultAffinityMapping         Name="AffinityMappingRageWizards"/>
    <Personality                    Name="PersonalityAffinityRageWizards"/>
    <SubTrait                       Name="FactionTraitRageWizardsMainQuest"                                           Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitRageWizardsArcanaUse"/>     <!-- Affinity: Power through Pain -->
    <SubTrait                       Name="FactionTraitRageWizardsUnit1"/>
    <SubTrait                       Name="FactionTraitRageWizardsUnit2"/>
    <SubTrait                       Name="FactionTraitRageWizardsUnit3"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileRageWizardsHero1,UnitDesignRageWizardsSettler#1,UnitDesignRageWizardsBattleMage#1,UnitDesignRageWizardsBattleMage#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Vaulters -->
  <FactionAffinity                  Name="AffinityVaulters"                     SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityVaulters"/>
    <DefaultAffinityMapping         Name="AffinityMappingVaulters"/>
    <Personality                    Name="PersonalityAffinityVaulters"/>
    <SubTrait                       Name="FactionTraitVaultersMainQuest"                                              Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitAffinityStrategic"/>        <!-- Affinity: Holy Resource -->
    <SubTrait                       Name="FactionTraitVaultersUnit1"/>
    <SubTrait                       Name="FactionTraitVaultersUnit2"/>
    <SubTrait                       Name="FactionTraitVaultersUnit3"/>
    <SubTrait                       Name="FactionTraitVaultersMezari"                                                 Hidden="true"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileVaultersHero1,UnitDesignVaultersSettler#1,UnitDesignVaultersMarine#1,UnitDesignVaultersMarine#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Roving Clans -->
  <FactionAffinity                  Name="AffinityRovingClans"                  SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityRovingClans"/>
    <DefaultAffinityMapping         Name="AffinityMappingRovingClans"/>
    <Personality                    Name="PersonalityAffinityRovingClans"/>
    <SubTrait                       Name="FactionTraitRovingClansMainQuest"                                           Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitRovingClans12"/>              <!-- Affinity: Nomadic Cities -->
    <SubTrait                       Name="FactionTraitRovingClansUnit1"/>
    <SubTrait                       Name="FactionTraitRovingClansUnit2"/>
    <SubTrait                       Name="FactionTraitRovingClansUnit3"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileRovingClansHero1,UnitDesignRovingClansSettler#1,UnitDesignRovingClansDervish#1,UnitDesignRovingClansDervish#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Drakkens -->
  <FactionAffinity                  Name="AffinityDrakkens"                     SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityDrakkens"/>
    <DefaultAffinityMapping         Name="AffinityMappingDrakkens"/>
    <Personality                    Name="PersonalityAffinityDrakkens"/>
    <SubTrait                       Name="FactionTraitDrakkensMainQuest"                                              Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitDrakkens6"/>                    <!-- Affinity: Diplomatic Pressure -->
    <SubTrait                       Name="FactionTraitDrakkensUnit1"/>
    <SubTrait                       Name="FactionTraitDrakkensUnit2"/>
    <SubTrait                       Name="FactionTraitDrakkensUnit3"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileDrakkensHero1,UnitDesignDrakkensSettler#1,UnitDesignDrakkensDrakkenling#1,UnitDesignDrakkensDrakkenling#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Cultists -->
  <FactionAffinity                  Name="AffinityCultists"                     SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityCultists"/>
    <DefaultAffinityMapping         Name="AffinityMappingCultists"/>
    <Personality                    Name="PersonalityAffinityCultists"/>
    <SubTrait                       Name="FactionTraitCultistsMainQuest"                                              Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitCultists7"/>                    <!-- Affinity: High Seat of the Queen -->
    <SubTrait                       Name="FactionTraitCultistsUnit1"/>
    <SubTrait                       Name="FactionTraitCultistsUnit2"/>
    <SubTrait                       Name="FactionTraitCultistsUnit3"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileCultistsHero1,UnitDesignCultistsSettler#1,UnitDesignCultistsPreacher#1,UnitDesignCultistsPreacher#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Mezari -->
  <FactionAffinity                  Name="AffinityMezari"                       SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityMezari"/>
    <DefaultAffinityMapping         Name="AffinityMappingMezari"/>
    <Personality                    Name="PersonalityAffinityVaulters"/>
    <SubTrait                       Name="FactionTraitVaultersMainQuest"                                              Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitAffinityStrategic"/>        <!-- Affinity: Holy Resource -->
    <SubTrait                       Name="FactionTraitMezariUnit1"/>
    <SubTrait                       Name="FactionTraitMezariUnit2"/>
    <SubTrait                       Name="FactionTraitMezariUnit3"/>
    <SubTrait                       Name="FactionTraitVaultersMezari"                                                 Hidden="true"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileMezariHero1,UnitDesignMezariSettler#1,UnitDesignMezariMarine#1,UnitDesignMezariMarine#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Replicants -->
  <FactionAffinity                  Name="AffinityReplicants"                   SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityReplicants"/>
    <DefaultAffinityMapping         Name="AffinityMappingReplicants"/>
    <Personality                    Name="PersonalityAffinityReplicants"/>
    <SubTrait                       Name="FactionTraitReplicantsMainQuest"                                            Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitReplicants1"/>            <!-- Affinity: Science-Phobic -->
    <SubTrait                       Name="FactionTraitReplicantsUnit1"/>
    <SubTrait                       Name="FactionTraitReplicantsUnit2"/>
    <SubTrait                       Name="FactionTraitReplicantsUnit3"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileReplicantsHero1,UnitDesignReplicantsSettler#1,UnitDesignReplicantsAssassin#1,UnitDesignReplicantsAssassin#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Winter Shifters -->
  <FactionAffinity                  Name="AffinityWinterShifters"               SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinityWinterShifters"/>
    <DefaultAffinityMapping         Name="AffinityMappingWinterShifters"/>
    <Personality                    Name="PersonalityAffinityWinterShifters"/>
    <SubTrait                       Name="FactionTraitWinterShiftersMainQuest"                                        Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitWinterShifters1"/>        <!-- Affinity: Shifting -->
    <SubTrait                       Name="FactionTraitWinterShiftersUnit1"/>
    <SubTrait                       Name="FactionTraitWinterShiftersUnit2"/>
    <SubTrait                       Name="FactionTraitWinterShiftersUnit3"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileWinterShiftersHero2,UnitDesignWinterShiftersSettler#1,UnitDesignWinterShiftersFeline#1,UnitDesignWinterShiftersFeline#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>

  <!-- Sea Demons -->
  <FactionAffinity                  Name="AffinitySeaDemons"                    SubCategory="MajorFactionAffinity"    Hidden="false" Cost="105">
    <SimulationDescriptorReference  Name="AffinitySeaDemons"/>
    <DefaultAffinityMapping         Name="AffinityMappingSeaDemons"/>
    <Personality                    Name="PersonalityAffinitySeaDemons"/>
    <SubTrait                       Name="FactionTraitSeaDemonsMainQuest"                                             Hidden="true"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitSeaDemons1"/>             <!-- Affinity: Neptunian -->
    <SubTrait                       Name="FactionTraitSeaDemonsUnit1"/>
    <SubTrait                       Name="FactionTraitSeaDemonsUnit2"/>
    <SubTrait                       Name="FactionTraitSeaDemonsUnit3"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitProfileSeaDemonsHero5,UnitDesignSeaDemonsSettler#1,UnitDesignSeaDemonsMastermind#1,UnitDesignSeaDemonsMastermind#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
    <OptionDefinitionConstraint OptionName="PercentageOfLandmassOverWater" Type="Conditional">
      <Key Name="30"/>
      <Key Name="40"/>
      <Key Name="50"/>
    </OptionDefinitionConstraint>
    <OptionDefinitionConstraint OptionName="WorldShape" Type="Conditional">
      <Key Name="2LargeContinents"/>
      <Key Name="4Continents"/>
      <Key Name="FewContinents"/>
      <Key Name="ManyContinents"/>
      <Key Name="Supercontinent"/>
      <Key Name="LargeSupercontinent"/>
      <Key Name="LargeIslands"/>
      <Key Name="Islands"/>
      <Key Name="Custom"/>
    </OptionDefinitionConstraint>
  </FactionAffinity>

  <!-- Faction Tutorial-->
  <FactionAffinity                  Name="AffinityTutorial"                     SubCategory="TutorialFactionAffinity" Hidden="true" Cost="105">
    <SimulationDescriptorReference  Name="AffinityTutorial"/>
    <Personality                    Name="PersonalityAffinityVaulters"/>
    <SubTrait                       Name="FactionTraitMajorFaction"                                                   Hidden="true"/>
    <SubTrait                       Name="FactionTraitTutorialUnit1"                                                  Hidden="true"/>
    <SubTrait                       Name="FactionTraitTutorialUnit2"                                                  Hidden="true"/>
    <SubTrait                       Name="FactionTraitTutorialUnit3"                                                  Hidden="true"/>
    <Command                        Name="CreateArmy"                           Arguments="UnitDesignTutorialSettler#1"/>
    <Command                        Name="TransferResources"                    Arguments="EmpireMoney,50"/>
  </FactionAffinity>


</Datatable>